package com.fzj.charging.common.pojo.day1121;

/**
 * 饿汉式
 */
public class SingletonEager {
    //类加载时创建实例
    private static final SingletonEager instance = new SingletonEager();
    //私有的构造方法，防止在外部实例化
    private SingletonEager(){}
    //提供全局访问点
    public static SingletonEager getInstance(){
        return instance;
    }
}
